package com.ruoyi.game.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.game.service.IGameWingoRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;

/**
 * wingo开奖记录Controller
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
@RestController
@RequestMapping("/app/game/wingo")
public class GameWingoRecordController extends BaseController
{
    @Autowired
    private IGameWingoRecordService gameWingoRecordService;

    /**
//     * 查询wingo开奖记录列表
     * @param pageNo
     * @param pageSize
     * @return
     */
//    @GetMapping("/page")
//    public AjaxResult page(int pageNo, int pageSize,int timeLimit,String currentRound){
//        return AjaxResult.success(gameWingoRecordService.page(pageNo,pageSize,timeLimit,currentRound));
//    }
    @GetMapping("/page")
    public AjaxResult page(int pageNo, int pageSize,int timeLimit){
        return AjaxResult.success(gameWingoRecordService.page(pageNo,pageSize,timeLimit));
    }
    /**
     *  根据roundNo查询
     * @param roundNo
     * @return
     */
    @GetMapping("/findByRoundNo")
    public AjaxResult findByRoundNo(String roundNo){
        return AjaxResult.success(gameWingoRecordService.findByRoundNo(roundNo));
    }
}
